import { lazy } from "react"

export const routes = [
    {
        path: '/login',
        authCheckType: 'unauthed',
        power: 1,
        component: lazy(() => import('./pages/Login')),
    },
    {
        path: '/power',
        authCheckType: 'authed',
        power: 1,
        component: lazy(() => import('./pages/Power')),
    },
    {
        path: '/none',
        authCheckType: 'whocare',
        power: 1,
        component: lazy(() => import('./pages/None')),
    },
    {
        path: '/home',
        authCheckType: 'authed',
        power: 0,
        component: lazy(() => import('./pages/Home')),
        routes: [
            {
                path: '/home/student',
                authCheckType: 'authed',
                power: 1,
                component: lazy(() => import('./components/home/Stu')),
            },
            {
                path: '/home/class',
                authCheckType: 'authed',
                power: 1,
                component: lazy(() => import('./components/home/Class')),
            },
            {
                path: '/home/home',
                authCheckType: 'authed',
                power: 0,
                component: lazy(() => import('./components/home/Home')),
            },
            {
                path: '/home/teacher',
                authCheckType: 'authed',
                power: 1,
                component: lazy(() => import('./components/home/Teacher')),
            },
            {
                path: '/home/tclass',
                authCheckType: 'authed',
                power: 2,
                component: lazy(() => import('./components/thome/Class')),
            },
            {
                path: '/home/tstu',
                authCheckType: 'authed',
                power: 2,
                component: lazy(() => import('./components/home/Tstu')),
            },
            {
                path: '/home/tscore',
                authCheckType: 'authed',
                power: 1,
                component: lazy(() => import('./components/thome/Home')),
            },
        ]
    },
    {
        path: '/teacher',
        authCheckType: 'authed',
        power: 2,
        component: lazy(() => import('./pages/Thome')),
        routes: [
            {
                path: '/teacher/class',
                authCheckType: 'authed',
                power: 2,
                component: lazy(() => import('./components/thome/Class')),
            },
            {
                path: '/teacher/stu',
                authCheckType: 'authed',
                power: 2,
                component: lazy(() => import('./components/thome/Upload')),
            },
            {
                path: '/teacher/score',
                authCheckType: 'authed',
                power: 2,
                component: lazy(() => import('./components/thome/Home')),
            },
        ]
    },
    {
        path: '/stu',
        authCheckType: 'authed',
        power: 3,
        component: lazy(() => import('./pages/Home')),
        routes: [
            {
                path: '/stu/home',
                authCheckType: 'authed',
                power: 3,
                component: lazy(() => import('./components/home/Home')),
            },
            {
                path: '/stu/class',
                authCheckType: 'authed',
                power: 3,
                component: lazy(() => import('./components/Shome/Sclass')),
            },
            {
                path: '/stu/score',
                authCheckType: 'authed',
                power: 3,
                component: lazy(() => import('./components/Shome/Score')),
            },
            {
                path: '/stu/checkClass',
                authCheckType: 'authed',
                power: 3,
                component: lazy(() => import('./components/Shome/Check')),
            },
        ]
    }
]